package com.glsc.ngateway.common.base.domain.mysql.opmanage.report.fileupload;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

import javax.persistence.*;
import java.math.BigInteger;

/**
 * @author: qiyr
 * @date: 2022/8/10 10:13
 * @description: 导入文件模板格式校验规则定义
 */
@Entity
@Table(name = "t_import_templaterules_define")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class ImportTemplateRulesDefine {

    @Id
    @Column(name = "id" , columnDefinition = "bigint")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private BigInteger id;

    @Column(name = "import_config_id" , columnDefinition = "bigint")
    private BigInteger importConfigId;

    @Column(name = "import_caption")
    private String importCaption;

    @Column(name = "sheet_name")
    private String sheetName;

    @Column(name = "sheet_index")
    private Integer sheetIndex;

    @Column(name = "position")
    private String position;

    @Column(name = "content")
    private String content;

    public BigInteger getId() {
        return id;
    }

    public void setId(BigInteger id) {
        this.id = id;
    }

    public BigInteger getImportConfigId() {
        return importConfigId;
    }

    public void setImportConfigId(BigInteger importConfigId) {
        this.importConfigId = importConfigId;
    }

    public String getImportCaption() {
        return importCaption;
    }

    public void setImportCaption(String importCaption) {
        this.importCaption = importCaption;
    }

    public String getSheetName() {
        return sheetName;
    }

    public void setSheetName(String sheetName) {
        this.sheetName = sheetName;
    }

    public Integer getSheetIndex() {
        return sheetIndex;
    }

    public void setSheetIndex(Integer sheetIndex) {
        this.sheetIndex = sheetIndex;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "ImportTemplateRulesDefine{" +
                "id=" + id +
                ", importConfigId=" + importConfigId +
                ", importCaption='" + importCaption + '\'' +
                ", sheetName='" + sheetName + '\'' +
                ", sheetIndex='" + sheetIndex + '\'' +
                ", position='" + position + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
